<!DOCTYPE html>
<html>
<head>
    {include file="public/header" /}
</head>
<body>
<div style="padding-bottom:200px" class="layui-form layuimini-form">

    <input type="hidden" name="id" value="{$res.id}" />
    <div class="layui-form-item">
        <label class="layui-form-label required">昵称</label>
        <div class="layui-input-block">
            <input type="text" name="name"  value="{$res.name}"      class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">h5_openId</label>
        <div class="layui-input-block">
            <input type="text"  disabled value="{$res.openid}"      class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">app_openId</label>
        <div class="layui-input-block">
            <input type="text"  disabled value="{$res.openid_app}"      class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">设备id</label>
        <div class="layui-input-block">
            <input type="text" name="name"  value="{$res.client_id}"      class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label required">头像</label>
        <div class="layui-input-block" id="headpic_p">
            <!--{$res.headpic}-->
            <img  src="{$res.headpic}" id="headpic">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">电话</label>
        <div class="layui-input-block">
            <input type="text" disabled  value="{$res.phone}" name="phone"        class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" id="area-picker" >
        <label class="layui-form-label required">所在地区</label>
        <div class="layui-input-inline">
            <select name="province" class="province-selector" data-value="{$res.province}" lay-filter="province-1">
                <option value="">选择省</option>
            </select>

        </div>
        <div class="layui-input-inline">
            <select name="city" class="city-selector" data-value="{$res.city}" lay-filter="city-1">
                <option value="">选择市</option>
            </select>

        </div>
        <div class="layui-input-inline">
            <select name="area" class="county-selector" data-value="{$res.area}" lay-filter="county-1">
                <option value="">选择地区</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label required">累计消费金额</label>
        <div class="layui-input-block">
            <input type="text"   disabled value="￥{$res.total_price}"          class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label" id="aa">状态</label>
        <div class="layui-input-block">
            <input type="text"  disabled    value="{$res.status_title}"          class="layui-input">

        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
            <button class="layui-btn layui-btn" onclick="saleMember()">消费记录</button>

        </div>
    </div>
    <!--</form>-->
</div>
{include file="public/footer" /}
<script src="/static/admin/member/memberdetail.js?v={$Think.const.TIMESTAMP}" charset="utf-8"></script>
<script>
    function saleMember(){
        var index = layer.open({
            title: '查看消费记录',
            type: 2,
            shade: 0.2,
            maxmin: true,
            shadeClose: true,
            area: ['100%', '100%'],
            content: "/admin/member/saleMember?id={$id}",
        });
        $(window).on("resize", function () {
            layer.full(index);
        });
        return false;

    }

</script>
</body>
</html>